package com.imay.live.activity.family;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.RecyclerView;

import com.imay.live.R;
import com.imay.live.activity.BaseRequestActivity;
import com.imay.live.activity.family.controller.FamilyPersonLevelController;
import com.imay.live.manager.FamilyAccountManager;
import com.imay.live.proto.helper.ProtoHttpFactory;
import com.imay.live.proto.helper.ProtoRequest;
import com.imay.live.proto.helper.ProtoRequestHelper;

/**
 * Created by Administrator on 2017/9/8 0008.
 */

public class FamilyUserLevelActivity extends BaseRequestActivity {

    private FamilyPersonLevelController controller;

    /**
     * @param context
     */
    public static void startActivity(Context context) {
        Intent intent = new Intent(context, FamilyUserLevelActivity.class);
        context.startActivity(intent);
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_family_person_level;
    }

    @Override
    protected void initView(Bundle savedInstanceState) {
        setTitle(R.string.str_family_person_level_title);
        controller = (FamilyPersonLevelController) FamilyPersonLevelController.Builder.create(this, FamilyPersonLevelController.class).build();
        if (FamilyAccountManager.getInstance().getFamilyUserInfo() != null
                && FamilyAccountManager.getInstance().getFamilyUserInfo().getFamilyUser() != null) {
            controller.initHeadView(FamilyAccountManager.getInstance().getFamilyUserInfo().getFamilyUser().getLv());
        }
    }
}
